<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head></h:head>
<h:body>
	<ui:composition template="/template.xhtml">
		<ui:define name="corpo">
			<h:form>
				<p:growl id="msg" showDetail="true" />  
				<p:fieldset legend="Assunto">
					<h:inputText value="#{duvidaBean.titulo}" />
				</p:fieldset>

				<p:fieldset legend="Descrição">
					
				<p:editor value="#{duvidaBean.descricao}" id="editor" width="600" height="300"
						controls="bold italic underline font size color bullets numbering alignleft center 
						alignright justify image print "/>
						
				</p:fieldset>
				<p:commandButton value="Postar dúvida" action="#{duvidaBean.postarDuvida}" update="msg"/>
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>
</html>